package com.wanda.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.mapper.CustomermessageMapper;
import com.wanda.po.Customermessage;
import com.wanda.po.CustomermessageExample;
import com.wanda.service.CustomerService;

@Service("customerService")
public class CustomerServiceImpl implements CustomerService{
	
	@Autowired
	private CustomermessageMapper customermessagemapper;
	
	public int insert(Customermessage customermessage) throws Exception {
		int n = customermessagemapper.insertSelective(customermessage);	
		return n;
	}
	public List<Customermessage> selectByExample(CustomermessageExample example) {
		return customermessagemapper.selectByExample(example);
	}
	public int updateByPrimaryKeySelective(Customermessage record) {
		int n = customermessagemapper.updateByPrimaryKeySelective(record);
		return n;
	}
	public int deleteByPrimaryKey(Integer id) {
		int n = customermessagemapper.deleteByPrimaryKey(id);
		return n;
	}
	public Customermessage selectByPrimaryKey(Integer id) {
		Customermessage customermessage = customermessagemapper.selectByPrimaryKey(id);
		return customermessage;
	}
}
